<include file="Public/header"/> 
<include file="Public/sidebar"/>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        分类管理
        <small>分类列表</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
        <li class="active">Here</li>
      </ol>
    </section>
    <!-- Main content -->
    <section class="content">
      <div class="box">
            <div class="box-header">
            <a href="{:U('Admin/Category/add')}"><button class="btn btn-success">添加分类</button></a>
            </div>
            <!-- /.box-header -->
            <form action="{:U('Admin/Category/order')}" method="post">
            <div class="box-body">
              <table id="example2" class="table table-bordered table-hover mailbox-messages">
                <thead>
                <tr>
                  <th>排序</th>
                  <th>分类名称</th>
                  <th>分类类型</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="nav" item="v">
                <tr>
                  <td><input type="text" class="form-control" style="width:40px;height:25px;" type="text" name="{$v['id']}" value="{$v['order_number']}"></td>
                  <td>{$v['_name']}</td>
                  <td>{$v['type']}</td>
                  <td><a href="{:U('Admin/Category/edit',array('id'=>$v['id']))}">修改</a> | <a href="{:U('Admin/Category/add',array('id'=>$v['id']))}">添加子分类</a> | <a href="javascript:if(confirm('确定删除？'))location='{:U('Admin/Category/delete',array('id'=>$v['id']))}'">删除</a></td>
                </tr>
                </foreach>
                <tr>
                  <th><input class="btn btn-success" type="submit" value="排序"></th>
                  <th></th>
                  <th></th>
                  <th></th>
                </tr>
                </tbody>
              </table>
            </div>
            </form>
            <!-- /.box-body -->
      </div>
      <!-- /.box -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
<include file="Public/footer"/>
<script>

</script>